﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdvertList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Advert.AdvertList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" class="pageForm" runat="Server">
<%=_framePage.TabInfoHtml()%>
<input runat="Server" ID="position_Code" type="hidden" />
<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">
				<li>
			    <span>&nbsp;&nbsp;广告位位置&nbsp;:</span>
                <asp:dropdownlist runat="server" id="ddl_Adsposition" width="100" cond="positionCode" ctltype="dropdownlist"></asp:dropdownlist>&nbsp;&nbsp;
			</li>
            	<li>
			    <span>&nbsp;&nbsp;是否显示&nbsp;:</span>
                <asp:dropdownlist runat="server" id="ddl_status" cond="status"
                    width="150px">
                </asp:dropdownlist>
			</li>
            <li>
			    <span>&nbsp;&nbsp;标题&nbsp;:</span>
                <input  cond="ptitle" value="<%=Request["ptitle"] %>"/>
			</li>
		</ul>
	    <div class="subBar">
			<ul>
			<li>
			 <a class="buttonActive" href="<%= Request.Path+"?kind="+Request["kind"] %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href='/SystemManage/Basics/Advert/AdvertAdd.aspx?code=<%=Request["code"] %>&Kind=<%=Request["Kind"] %>' target="navTab" rel="addadvert" title="广告位-增加"><span>添加</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="115">
	<table class="list" width="100%" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <%--<th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="5%" style="display: none">编号</th>--%>
                <th width="15%">缩略图</th>
				<th width="10%">标题</th>
                <th width="15%">描述</th>
				<th width="10%">位置</th>
                <th width="5%">是否显示</th>
				<th width="5%">排序</th>
				<th width="5%">参数1</th>
				<th width="5%">参数2</th>
                <th width="5%">参数3</th>
                <th width="5%">参数4</th>
                <th width="5%">参数5</th>
				<th width="10%">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="grid">
                <ItemTemplate>
			    <tr target="uid" rel='<%# Eval("Id")%>'>
                        <%--<td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				        <td style="display: none"><span><%# Eval("Id")%></td>--%>
				        <td><img src="<%# FileKit.FirstFilePath(Eval("PhotoUrl").ToString()) %>" alt="" width="100%" /></td>
				        <td><%# Eval("Title")%></td>
				        <td><%# Eval("Description")%></td>
				        <td><%#ParamKit.GetValue("ShopAdvertPosition", Eval("PositionCode"), "&nbsp;")%></td>
				        <td><%#ParamKit.GetValue("YesNo_10", Eval("Status"), "&nbsp;")%></td>
				        <td><%# Eval("Sort") %></td>
				        <td><%# Eval("param1") %></td>
                        <td><%# Eval("param2")%></td>
				        <td><%# Eval("param3")%></td>
                        <td><%# Eval("param4")%></td>
                        <td><%# Eval("param5")%></td>
				    <td> 
				        <a href="/SystemManage/Basics/Advert/AdvertEdit.aspx?uid=<%# Eval("Id")%>&Kind=<%=Request["Kind"] %>" onclick="ZLAN_DWZ_EX.open(this);" target="navTab" title="广告位-编辑" rel="editadvert">编辑</a>&nbsp;&nbsp;
                      <a href="/SystemManage/Basics/Advert/AdvertDelete.aspx?uid=<%# Eval("Id")%>" onclick="ZLAN_DWZ_EX.open(this);" target="ajaxTodo" title="请确定要删除">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
</div>	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>